/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * File Name          : camTrigger.hpp
  * Description        : 
  ******************************************************************************
  * Function           :
  *
  ******************************************************************************
  * Author             : Zhiping Fu
  * Creation Date      : Oct 23, 2020
  ******************************************************************************
  */
/* USER CODE END Header */

#ifndef __CAMTRIGGER_HPP
#define __CAMTRIGGER_HPP

#include "userlib/userlib.hpp"
#include "system/system.hpp"

#ifdef __cplusplus
extern "C" {
#endif



#ifdef __cplusplus
}
#endif


#ifdef __cplusplus

using namespace std;

class CAMTRIGGER
{
public:
	CAMTRIGGER(){}
	~CAMTRIGGER(){}

	void camTrigger_Init(void);
	void camTrigger_Run(void);
	bool linux_init_success;

	linux_msg linux;

private:
	eSTA  Sta;        //状态  --
	eERR  Err;        //错误信息  --
	bool  UnLock;     //解锁

	uint32_t  startTimer;			//计时器
	uint32_t  stopTimer;			//计时器
	uint32_t  executionTime_us;			//计时器

	uint32_t  startTimerLast;			//计时器
	uint32_t  cycleTime_us;

	camTrigger_msg camTrigger;

};

#endif


#endif


/************************ (C) COPYRIGHT Longmen Drone Team *****END OF FILE****/
